//
//  LongPickerView.h
//  CoachsBook
//
//  Created by huiyong li on 2022/8/19.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    LongSingleLine,//单行
    LongDoubleRow,//主次双行
} LongPickerViewType;

@protocol LongPickerViewDelegate <NSObject>
- (void)choosPickerView :(UIView *)pickerView  WithRowStr:(NSString *)rowStr AndRowNum:(NSInteger)row;
- (void)closePickerView :(UIView *)pickerView;
@end

@interface LongPickerView : UIView

@property (nonatomic, weak) id<LongPickerViewDelegate>delegate;
@property(nonatomic,strong)UIPickerView *mypickerView;
@property (nonatomic, strong) NSArray *dataArr;
@property (nonatomic, assign) LongPickerViewType pickerViewType;
/**
 *  初始化
 *
 *  @param frame    frame
 *  @param dataArr  数据源
 *
 */
- (instancetype)initWithFrame:(CGRect)frame dataArr:(NSArray *)dataArr;
@end

NS_ASSUME_NONNULL_END
